package com.vishu.regex;

import java.util.regex.Matcher;
import java.util.regex.Pattern;
//changed by 3rd person
//change 2
//conflict1
public class BasicRegExExample {
	
	public static void main(String args[])
	{
		boolean result; 
		
		Pattern pat=Pattern.compile("hi");;
		Matcher mat=pat.matcher("hi");
		
		              
        result=mat.matches(); //checks for a match
                
        if(result)System.out.println("Matches");
        else System.out.println("Doesn't Match");
		
        mat=pat.matcher("hi hi hello world");
        result=mat.matches(); //checks for a match
        if(result)System.out.println("Matches");
        else System.out.println("Doesn't Match");
	}

}
